package com.itheima.test3;

/*
类名 对象名= new 类名();
对象名.成员
 */
public class Test {

    public static void main(String[] args) {
        System.out.println(Outer.i);
        Outer.sing();
        Outer.Inner inner = new Outer.Inner();
            /*System.out.println(inner.j);
            inner.dance();*/
        System.out.println(Outer.Inner.j);
        Outer.Inner.dance();
    }
}

class Outer {
    static int i = 10;

    public static void sing() {
        System.out.println("只因你太美");
    }

    static class Inner {
        static int j = 10;

        public static void dance() {
            System.out.println("蹦迪蹦一晚");
        }
    }

}
